package com.music.detail.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.music.detail.dao.TrackDetailDao;
import com.music.detail.service.TrackDetailService;
import com.music.domain.Commit;
import com.music.domain.Music;

@Service
public class TrackDetailServiceImpl implements TrackDetailService {
	
	@Autowired
	TrackDetailDao trackDetailDao;
	
	@Override
	public Music findMusicById(String id) {
		return trackDetailDao.findMusicById(id);
	}

	@Override
	public List<Commit> findCommitsById(String id) {
		return trackDetailDao.findCommitsById(id);
	}

	@Override
	public List<Music> findMusicByAuthorId(String authorId) {
		return trackDetailDao.findMusicByAuthorId(authorId);
	}

	@Override
	public List<Music> findMusicByCateId(String cateId) {
		return trackDetailDao.findMusicByCateId(cateId);
	}

	@Override
	public void addCommit(Map<String, Object> param) {
		trackDetailDao.addCommit(param);
	}
	
	

}
